Skip to content

[CI] Update tests & add swap test#8

Merged
BrettCleary merged 24 commits intomainfrom
ci/add_tests
Mar 17, 2026
Merged

[CI] Update tests & add swap test#8
BrettCleary merged 24 commits intomainfrom
ci/add_tests

Conversation

@BrettCleary
Copy link
Copy Markdown
Contributor

@BrettCleary BrettCleary commented Mar 4, 2026

This pull request introduces comprehensive support for QuickNode as an RPC provider, enabling the CLI to route blockchain requests through paid QuickNode endpoints for supported chains when the relevant environment variables are set. It also improves documentation for RPC configuration, expands environment variable handling in CI, and significantly enhances end-to-end (E2E) tests to cover more realistic scenarios on both testnet and mainnet. The most important changes are grouped below:

QuickNode RPC Integration:

  • Refactored createPublicClient.ts to add QuickNode support: selects QuickNode endpoints for supported chains when RPC_BASE_URL and RPC_API_KEY are set, with fallback to public RPC or local override via RPC_URL_OVERRIDE. Introduced the getChainTransport utility and updated the client creation logic accordingly. (src/services/createPublicClient.ts)
  • Updated documentation in README.md, coinfello/SKILL.md, and coinfello/references/REFERENCE.md to explain new RPC environment variables, supported chains, and the resolution order for selecting RPC endpoints. (README.md, coinfello/SKILL.md, coinfello/references/REFERENCE.md) [1] [2] [3] [4] [5]

E2E Test Improvements:

  • Expanded send-prompt-cli.test.ts to cover both Base Sepolia testnet and Base mainnet, including flows for sending ETH, swapping tokens, and staking/unstaking USDC in the Fluid vault. Tests now use real network calls, verify on-chain balances, and clean up test funds after execution. (tests/e2e/send-prompt-cli.test.ts) [1] [2] [3]

CI/CD and Versioning:

  • Updated the E2E GitHub Actions workflow to inject new RPC-related secrets as environment variables for tests, ensuring the correct setup for QuickNode integration in CI. (.github/workflows/e2e.yml)
  • Bumped package version from 0.2.1 to 0.2.2 to reflect these new features and improvements. (package.json)

@BrettCleary BrettCleary self-assigned this Mar 4, 2026
@BrettCleary BrettCleary merged commit bb77f5f into main Mar 17, 2026
2 checks passed
@BrettCleary BrettCleary deleted the ci/add_tests branch March 17, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant